package com.house.system.controller;


import com.house.common.utils.PageUtils;
import com.house.common.utils.R;
import com.house.system.entity.TbAreasystem;
import com.house.system.service.RegionalService;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/system/regional")
public class RegionalController {
    private final RegionalService regionalService;

    public RegionalController(RegionalService regionalService) {
        this.regionalService = regionalService;
    }

    /**
     * 列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = regionalService.queryPage(params);

        return R.ok().put("page", page);
    }



}
